//
//  YKDropdownLabel.h
//  YunKang
//
//  Created by leoking870 on 2017/9/29.
//  Copyright © 2017年 leoking870. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YKDropdown.h"


@interface YKDropdownLabel : UIView
@property (nonatomic, strong) id<YKDropdown> text;
@property (nonatomic, strong) NSArray<YKDropdown>* data;
@property (nonatomic, strong) YKDropdownLabel *subDropdownLabel;
@property (nonatomic, assign)BOOL enabled;
- (instancetype)initWithText:(id<YKDropdown>)text
                         row:(NSArray<YKDropdown> *)data
            selectionHandler:(void(^)(YKDropdownLabel* view, NSInteger index, id<YKDropdown> text))selectionHandler;

+ (NSArray<YKDropdownLabel*> *)dropdownLabelsFromData:(NSArray<YKDropdown> *)data selectionHandler:(void(^)(NSArray<YKDropdown> *selectedValues))handler;

- (void)reload;

@end
